//
//  FirstViewController.m
//  Demo CMTabBarController
//
//  Created by Constantine Mureev on 15.03.12.
//  Copyright (c) 2012 Team Force LLC. All rights reserved.
//

#import "DVMessageListVC.h"

@implementation DVMessageListVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"message";
    self.tableView.separatorColor = [UIColor clearColor];
    
    self.view.backgroundColor = [UIColor clearColor];
    
    NSMutableArray *list = [NSMutableArray array];
    
    for (int i=0; i<30; i++) {
        MTTableSingleTitleItem *title = [MTTableSingleTitleItem itemWithTitle:[NSString stringWithFormat:@"message %d",i]];
        [list addObject:title];
    }
    
    self.items = list;
    self.delegate = self;
}


- (void)tableController:(UIViewController *)controller didSelectRowAtIndexPath:(NSIndexPath *)indexPath selectedItem:(id)item forCell:(UITableViewCell *)cell {
    [self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone];
}

@end
